<template>
  <div class="not-found-container">
    <div class="error-content">
      <h1 class="error-code">404</h1>
      <p class="error-message">页面离家出走了...</p>
      <RouterLink to="/" class="home-button">
        <span class="button-icon">🏠</span>
        返回首页
      </RouterLink>
    </div>
  </div>
</template>

<script setup lang="ts">
import { RouterLink } from 'vue-router'
</script>

<style scoped>
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
  background-color: #f8f9fa;
  padding: 2rem;
}

.error-content {
  text-align: center;
  animation: fadeIn 0.6s ease-in;
}

.error-code {
  font-size: 8rem;
  color: #2c3e50;
  margin: 0;
  line-height: 1;
}

.error-message {
  font-size: 1.5rem;
  color: #7f8c8d;
  margin: 1rem 0 2rem;
}

.home-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: #3498db;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.home-button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.button-icon {
  margin-right: 8px;
  font-size: 1.2em;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
</style>